package com.four.marketing.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.four.marketing.entity.MarkChop;
import com.four.marketing.service.MarkChopService;
import com.four.marketing.service.impl.MarkChopServiceImpl;
import com.four.marketing.vo.MarkChopVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author gs
 * @since 2021-12-14
 */
@RestController
@RequestMapping("mark/chop")
public class MarkChopController {

    @Autowired
    private MarkChopService markChopService;


    @PostMapping("list")
    public IPage<MarkChop> list(
            @RequestParam(value = "page",defaultValue = "1") Integer page,
            @RequestParam(value = "size",defaultValue = "3") Integer size,
            @RequestBody MarkChopVo markChopVo){
        return markChopService.getList(page,size,markChopVo);
    }



}
